﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FAQFrameworks;

namespace FooFun.Web.Controls
{
    // 整个网站的最新问题
    // todo: 分页的实现
    public class LastTopic : DataElementControl
    {
        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);

            base.OnInit(e);

            TopicManager topicManager = new TopicManager();

            this.DataElement
                = topicManager.ListLastTopic(
                FAQContext.Current.PageIndex,
                20);
        }
    }
}
